<html><body>
<style>

body, h1, h2, h3, div, span, p, pre, a {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
}

body {
  font-size: 13px;
  padding: 1em;
}

h1 {
  font-size: 26px;
  margin-bottom: 1em;
}

h2 {
  font-size: 24px;
  margin-bottom: 1em;
}

h3 {
  font-size: 20px;
  margin-bottom: 1em;
  margin-top: 1em;
}

pre, code {
  line-height: 1.5;
  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}

pre {
  margin-top: 0.5em;
}

h1, h2, h3, p {
  font-family: Arial, sans serif;
}

h1, h2, h3 {
  border-bottom: solid #CCC 1px;
}

.toc_element {
  margin-top: 0.5em;
}

.firstline {
  margin-left: 2 em;
}

.method  {
  margin-top: 1em;
  border: solid 1px #CCC;
  padding: 1em;
  background: #EEE;
}

.details {
  font-weight: bold;
  font-size: 14px;
}

</style>

<h1><a href="beyondcorp_v1alpha.html">BeyondCorp API</a> . <a href="beyondcorp_v1alpha.projects.html">projects</a> . <a href="beyondcorp_v1alpha.projects.locations.html">locations</a> . <a href="beyondcorp_v1alpha.projects.locations.insights.html">insights</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
  <code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
  <code><a href="#configuredInsight">configuredInsight(insight, aggregation=None, customGrouping_fieldFilter=None, customGrouping_groupFields=None, endTime=None, fieldFilter=None, group=None, pageSize=None, pageToken=None, startTime=None, x__xgafv=None)</a></code></p>
<p class="firstline">Gets the value for a selected particular insight based on the provided filters. Use the organization level path for fetching at org level and project level path for fetching the insight value specific to a particular project.</p>
<p class="toc_element">
  <code><a href="#configuredInsight_next">configuredInsight_next()</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<p class="toc_element">
  <code><a href="#get">get(name, view=None, x__xgafv=None)</a></code></p>
<p class="firstline">Gets the value for a selected particular insight with default configuration. The default aggregation level is 'DAILY' and no grouping will be applied or default grouping if applicable. The data will be returned for recent 7 days starting the day before. The insight data size will be limited to 50 rows. Use the organization level path for fetching at org level and project level path for fetching the insight value specific to a particular project. Setting the `view` to `BASIC` will only return the metadata for the insight.</p>
<p class="toc_element">
  <code><a href="#list">list(parent, aggregation=None, endTime=None, filter=None, orderBy=None, pageSize=None, pageToken=None, startTime=None, view=None, x__xgafv=None)</a></code></p>
<p class="firstline">Lists for all the available insights that could be fetched from the system. Allows to filter using category. Setting the `view` to `BASIC` will let you iterate over the list of insight metadatas.</p>
<p class="toc_element">
  <code><a href="#list_next">list_next()</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<h3>Method Details</h3>
<div class="method">
    <code class="details" id="close">close()</code>
  <pre>Close httplib2 connections.</pre>
</div>

<div class="method">
    <code class="details" id="configuredInsight">configuredInsight(insight, aggregation=None, customGrouping_fieldFilter=None, customGrouping_groupFields=None, endTime=None, fieldFilter=None, group=None, pageSize=None, pageToken=None, startTime=None, x__xgafv=None)</code>
  <pre>Gets the value for a selected particular insight based on the provided filters. Use the organization level path for fetching at org level and project level path for fetching the insight value specific to a particular project.

Args:
  insight: string, Required. The resource name of the insight using the form: `organizations/{organization_id}/locations/{location_id}/insights/{insight_id}` `projects/{project_id}/locations/{location_id}/insights/{insight_id}`. (required)
  aggregation: string, Required. Aggregation type. Available aggregation could be fetched by calling insight list and get APIs in `BASIC` view.
    Allowed values
      AGGREGATION_UNSPECIFIED - Unspecified.
      HOURLY - Insight should be aggregated at hourly level.
      DAILY - Insight should be aggregated at daily level.
      WEEKLY - Insight should be aggregated at weekly level.
      MONTHLY - Insight should be aggregated at monthly level.
      CUSTOM_DATE_RANGE - Insight should be aggregated at the custom date range passed in as the start and end time in the request.
  customGrouping_fieldFilter: string, Optional. Filterable parameters to be added to the grouping clause. Available fields could be fetched by calling insight list and get APIs in `BASIC` view. `=` is the only comparison operator supported. `AND` is the only logical operator supported. Usage: field_filter=&quot;fieldName1=fieldVal1 AND fieldName2=fieldVal2&quot;. NOTE: Only `AND` conditions are allowed. NOTE: Use the `filter_alias` from `Insight.Metadata.Field` message for the filtering the corresponding fields in this filter field. (These expressions are based on the filter language described at https://google.aip.dev/160).
  customGrouping_groupFields: string, Required. Fields to be used for grouping. NOTE: Use the `filter_alias` from `Insight.Metadata.Field` message for declaring the fields to be grouped-by here. (repeated)
  endTime: string, Required. Ending time for the duration for which insight is to be pulled.
  fieldFilter: string, Optional. Other filterable/configurable parameters as applicable to the selected insight. Available fields could be fetched by calling insight list and get APIs in `BASIC` view. `=` is the only comparison operator supported. `AND` is the only logical operator supported. Usage: field_filter=&quot;fieldName1=fieldVal1 AND fieldName2=fieldVal2&quot;. NOTE: Only `AND` conditions are allowed. NOTE: Use the `filter_alias` from `Insight.Metadata.Field` message for the filtering the corresponding fields in this filter field. (These expressions are based on the filter language described at https://google.aip.dev/160).
  group: string, Optional. Group id of the available groupings for the insight. Available groupings could be fetched by calling insight list and get APIs in `BASIC` view.
  pageSize: integer, Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
  pageToken: string, Optional. Used to fetch the page represented by the token. Fetches the first page when not set.
  startTime: string, Required. Starting time for the duration for which insight is to be pulled.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # The response for the configured insight.
  &quot;appliedConfig&quot;: { # The configuration that was applied to generate the result. # Output only. Applied insight config to generate the result data rows.
    &quot;aggregation&quot;: &quot;A String&quot;, # Output only. Aggregation type applied.
    &quot;customGrouping&quot;: { # Customised grouping option that allows setting the group_by fields and also the filters togather for a configured insight request. # Output only. Customised grouping applied.
      &quot;fieldFilter&quot;: &quot;A String&quot;, # Optional. Filterable parameters to be added to the grouping clause. Available fields could be fetched by calling insight list and get APIs in `BASIC` view. `=` is the only comparison operator supported. `AND` is the only logical operator supported. Usage: field_filter=&quot;fieldName1=fieldVal1 AND fieldName2=fieldVal2&quot;. NOTE: Only `AND` conditions are allowed. NOTE: Use the `filter_alias` from `Insight.Metadata.Field` message for the filtering the corresponding fields in this filter field. (These expressions are based on the filter language described at https://google.aip.dev/160).
      &quot;groupFields&quot;: [ # Required. Fields to be used for grouping. NOTE: Use the `filter_alias` from `Insight.Metadata.Field` message for declaring the fields to be grouped-by here.
        &quot;A String&quot;,
      ],
    },
    &quot;endTime&quot;: &quot;A String&quot;, # Output only. Ending time for the duration for which insight was pulled.
    &quot;fieldFilter&quot;: &quot;A String&quot;, # Output only. Filters applied.
    &quot;group&quot;: &quot;A String&quot;, # Output only. Group id of the grouping applied.
    &quot;startTime&quot;: &quot;A String&quot;, # Output only. Starting time for the duration for which insight was pulled.
  },
  &quot;nextPageToken&quot;: &quot;A String&quot;, # Output only. Next page token to be fetched. Set to empty or NULL if there are no more pages available.
  &quot;rows&quot;: [ # Output only. Result rows returned containing the required value(s) for configured insight.
    { # Row of the fetch response consisting of a set of entries.
      &quot;fieldValues&quot;: [ # Output only. Columns/entries/key-vals in the result.
        { # Column or key value pair from the request as part of key to use in query or a single pair of the fetch response.
          &quot;displayName&quot;: &quot;A String&quot;, # Output only. Name of the field.
          &quot;filterAlias&quot;: &quot;A String&quot;, # Output only. Field name to be used in filter while requesting configured insight filtered on this field.
          &quot;id&quot;: &quot;A String&quot;, # Output only. Field id.
          &quot;value&quot;: &quot;A String&quot;, # Output only. Value of the field in string format. Acceptable values are strings or numbers.
        },
      ],
    },
  ],
}</pre>
</div>

<div class="method">
    <code class="details" id="configuredInsight_next">configuredInsight_next()</code>
  <pre>Retrieves the next page of results.

        Args:
          previous_request: The request for the previous page. (required)
          previous_response: The response from the request for the previous page. (required)

        Returns:
          A request object that you can call &#x27;execute()&#x27; on to request the next
          page. Returns None if there are no more items in the collection.
        </pre>
</div>

<div class="method">
    <code class="details" id="get">get(name, view=None, x__xgafv=None)</code>
  <pre>Gets the value for a selected particular insight with default configuration. The default aggregation level is &#x27;DAILY&#x27; and no grouping will be applied or default grouping if applicable. The data will be returned for recent 7 days starting the day before. The insight data size will be limited to 50 rows. Use the organization level path for fetching at org level and project level path for fetching the insight value specific to a particular project. Setting the `view` to `BASIC` will only return the metadata for the insight.

Args:
  name: string, Required. The resource name of the insight using the form: `organizations/{organization_id}/locations/{location_id}/insights/{insight_id}` `projects/{project_id}/locations/{location_id}/insights/{insight_id}` (required)
  view: string, Required. Metadata only or full data view.
    Allowed values
      INSIGHT_VIEW_UNSPECIFIED - The default / unset value. The API will default to the BASIC view.
      BASIC - Include basic metadata about the insight, but not the insight data. This is the default value (for both ListInsights and GetInsight).
      FULL - Include everything.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # The Insight object with configuration that was returned and actual list of records.
  &quot;appliedConfig&quot;: { # The configuration that was applied to generate the result. # Output only. Applied insight config to generate the result data rows.
    &quot;aggregation&quot;: &quot;A String&quot;, # Output only. Aggregation type applied.
    &quot;customGrouping&quot;: { # Customised grouping option that allows setting the group_by fields and also the filters togather for a configured insight request. # Output only. Customised grouping applied.
      &quot;fieldFilter&quot;: &quot;A String&quot;, # Optional. Filterable parameters to be added to the grouping clause. Available fields could be fetched by calling insight list and get APIs in `BASIC` view. `=` is the only comparison operator supported. `AND` is the only logical operator supported. Usage: field_filter=&quot;fieldName1=fieldVal1 AND fieldName2=fieldVal2&quot;. NOTE: Only `AND` conditions are allowed. NOTE: Use the `filter_alias` from `Insight.Metadata.Field` message for the filtering the corresponding fields in this filter field. (These expressions are based on the filter language described at https://google.aip.dev/160).
      &quot;groupFields&quot;: [ # Required. Fields to be used for grouping. NOTE: Use the `filter_alias` from `Insight.Metadata.Field` message for declaring the fields to be grouped-by here.
        &quot;A String&quot;,
      ],
    },
    &quot;endTime&quot;: &quot;A String&quot;, # Output only. Ending time for the duration for which insight was pulled.
    &quot;fieldFilter&quot;: &quot;A String&quot;, # Output only. Filters applied.
    &quot;group&quot;: &quot;A String&quot;, # Output only. Group id of the grouping applied.
    &quot;startTime&quot;: &quot;A String&quot;, # Output only. Starting time for the duration for which insight was pulled.
  },
  &quot;metadata&quot;: { # Insight filters, groupings and aggregations that can be applied for the insight. Examples: aggregations, groups, field filters. # Output only. Metadata for the Insight.
    &quot;aggregations&quot;: [ # Output only. List of aggregation types available for insight.
      &quot;A String&quot;,
    ],
    &quot;category&quot;: &quot;A String&quot;, # Output only. Category of the insight.
    &quot;displayName&quot;: &quot;A String&quot;, # Output only. Common name of the insight.
    &quot;fields&quot;: [ # Output only. List of fields available for insight.
      { # Field metadata. Commonly understandable name and description for the field. Multiple such fields constitute the Insight.
        &quot;description&quot;: &quot;A String&quot;, # Output only. Description of the field.
        &quot;displayName&quot;: &quot;A String&quot;, # Output only. Name of the field.
        &quot;filterAlias&quot;: &quot;A String&quot;, # Output only. Field name to be used in filter while requesting configured insight filtered on this field.
        &quot;filterable&quot;: True or False, # Output only. Indicates whether the field can be used for filtering.
        &quot;groupable&quot;: True or False, # Output only. Indicates whether the field can be used for grouping in custom grouping request.
        &quot;id&quot;: &quot;A String&quot;, # Output only. Field id for which this is the metadata.
      },
    ],
    &quot;groups&quot;: [ # Output only. List of groupings available for insight.
      &quot;A String&quot;,
    ],
    &quot;subCategory&quot;: &quot;A String&quot;, # Output only. Sub-Category of the insight.
    &quot;type&quot;: &quot;A String&quot;, # Output only. Type of the insight. It is metadata describing whether the insight is a metric (e.g. count) or a report (e.g. list, status).
  },
  &quot;name&quot;: &quot;A String&quot;, # Output only. The insight resource name. e.g. `organizations/{organization_id}/locations/{location_id}/insights/{insight_id}` OR `projects/{project_id}/locations/{location_id}/insights/{insight_id}`.
  &quot;rows&quot;: [ # Output only. Result rows returned containing the required value(s).
    { # Row of the fetch response consisting of a set of entries.
      &quot;fieldValues&quot;: [ # Output only. Columns/entries/key-vals in the result.
        { # Column or key value pair from the request as part of key to use in query or a single pair of the fetch response.
          &quot;displayName&quot;: &quot;A String&quot;, # Output only. Name of the field.
          &quot;filterAlias&quot;: &quot;A String&quot;, # Output only. Field name to be used in filter while requesting configured insight filtered on this field.
          &quot;id&quot;: &quot;A String&quot;, # Output only. Field id.
          &quot;value&quot;: &quot;A String&quot;, # Output only. Value of the field in string format. Acceptable values are strings or numbers.
        },
      ],
    },
  ],
}</pre>
</div>

<div class="method">
    <code class="details" id="list">list(parent, aggregation=None, endTime=None, filter=None, orderBy=None, pageSize=None, pageToken=None, startTime=None, view=None, x__xgafv=None)</code>
  <pre>Lists for all the available insights that could be fetched from the system. Allows to filter using category. Setting the `view` to `BASIC` will let you iterate over the list of insight metadatas.

Args:
  parent: string, Required. The resource name of InsightMetadata using the form: `organizations/{organization_id}/locations/{location}` `projects/{project_id}/locations/{location_id}` (required)
  aggregation: string, Optional. Aggregation type. The default is &#x27;DAILY&#x27;.
    Allowed values
      AGGREGATION_UNSPECIFIED - Unspecified.
      HOURLY - Insight should be aggregated at hourly level.
      DAILY - Insight should be aggregated at daily level.
      WEEKLY - Insight should be aggregated at weekly level.
      MONTHLY - Insight should be aggregated at monthly level.
      CUSTOM_DATE_RANGE - Insight should be aggregated at the custom date range passed in as the start and end time in the request.
  endTime: string, Optional. Ending time for the duration for which insights are to be pulled. The default is the current time.
  filter: string, Optional. Filter expression to restrict the insights returned. Supported filter fields: * `type` * `category` * `subCategory` Examples: * &quot;category = application AND type = count&quot; * &quot;category = application AND subCategory = iap&quot; * &quot;type = status&quot; Allowed values: * type: [count, latency, status, list] * category: [application, device, request, security] * subCategory: [iap, caa, webprotect] NOTE: Only equality based comparison is allowed. Only `AND` conjunction is allowed. NOTE: The &#x27;AND&#x27; in the filter field needs to be in capital letters only. NOTE: Just filtering on `subCategory` is not allowed. It should be passed in with the parent `category` too. (These expressions are based on the filter language described at https://google.aip.dev/160).
  orderBy: string, Optional. Hint for how to order the results. This is currently ignored.
  pageSize: integer, Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. NOTE: Default page size is 50.
  pageToken: string, Optional. A token identifying a page of results the server should return.
  startTime: string, Optional. Starting time for the duration for which insights are to be pulled. The default is 7 days before the current time.
  view: string, Required. List only metadata or full data.
    Allowed values
      INSIGHT_VIEW_UNSPECIFIED - The default / unset value. The API will default to the BASIC view.
      BASIC - Include basic metadata about the insight, but not the insight data. This is the default value (for both ListInsights and GetInsight).
      FULL - Include everything.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # The response for the list of insights.
  &quot;insights&quot;: [ # Output only. List of all insights.
    { # The Insight object with configuration that was returned and actual list of records.
      &quot;appliedConfig&quot;: { # The configuration that was applied to generate the result. # Output only. Applied insight config to generate the result data rows.
        &quot;aggregation&quot;: &quot;A String&quot;, # Output only. Aggregation type applied.
        &quot;customGrouping&quot;: { # Customised grouping option that allows setting the group_by fields and also the filters togather for a configured insight request. # Output only. Customised grouping applied.
          &quot;fieldFilter&quot;: &quot;A String&quot;, # Optional. Filterable parameters to be added to the grouping clause. Available fields could be fetched by calling insight list and get APIs in `BASIC` view. `=` is the only comparison operator supported. `AND` is the only logical operator supported. Usage: field_filter=&quot;fieldName1=fieldVal1 AND fieldName2=fieldVal2&quot;. NOTE: Only `AND` conditions are allowed. NOTE: Use the `filter_alias` from `Insight.Metadata.Field` message for the filtering the corresponding fields in this filter field. (These expressions are based on the filter language described at https://google.aip.dev/160).
          &quot;groupFields&quot;: [ # Required. Fields to be used for grouping. NOTE: Use the `filter_alias` from `Insight.Metadata.Field` message for declaring the fields to be grouped-by here.
            &quot;A String&quot;,
          ],
        },
        &quot;endTime&quot;: &quot;A String&quot;, # Output only. Ending time for the duration for which insight was pulled.
        &quot;fieldFilter&quot;: &quot;A String&quot;, # Output only. Filters applied.
        &quot;group&quot;: &quot;A String&quot;, # Output only. Group id of the grouping applied.
        &quot;startTime&quot;: &quot;A String&quot;, # Output only. Starting time for the duration for which insight was pulled.
      },
      &quot;metadata&quot;: { # Insight filters, groupings and aggregations that can be applied for the insight. Examples: aggregations, groups, field filters. # Output only. Metadata for the Insight.
        &quot;aggregations&quot;: [ # Output only. List of aggregation types available for insight.
          &quot;A String&quot;,
        ],
        &quot;category&quot;: &quot;A String&quot;, # Output only. Category of the insight.
        &quot;displayName&quot;: &quot;A String&quot;, # Output only. Common name of the insight.
        &quot;fields&quot;: [ # Output only. List of fields available for insight.
          { # Field metadata. Commonly understandable name and description for the field. Multiple such fields constitute the Insight.
            &quot;description&quot;: &quot;A String&quot;, # Output only. Description of the field.
            &quot;displayName&quot;: &quot;A String&quot;, # Output only. Name of the field.
            &quot;filterAlias&quot;: &quot;A String&quot;, # Output only. Field name to be used in filter while requesting configured insight filtered on this field.
            &quot;filterable&quot;: True or False, # Output only. Indicates whether the field can be used for filtering.
            &quot;groupable&quot;: True or False, # Output only. Indicates whether the field can be used for grouping in custom grouping request.
            &quot;id&quot;: &quot;A String&quot;, # Output only. Field id for which this is the metadata.
          },
        ],
        &quot;groups&quot;: [ # Output only. List of groupings available for insight.
          &quot;A String&quot;,
        ],
        &quot;subCategory&quot;: &quot;A String&quot;, # Output only. Sub-Category of the insight.
        &quot;type&quot;: &quot;A String&quot;, # Output only. Type of the insight. It is metadata describing whether the insight is a metric (e.g. count) or a report (e.g. list, status).
      },
      &quot;name&quot;: &quot;A String&quot;, # Output only. The insight resource name. e.g. `organizations/{organization_id}/locations/{location_id}/insights/{insight_id}` OR `projects/{project_id}/locations/{location_id}/insights/{insight_id}`.
      &quot;rows&quot;: [ # Output only. Result rows returned containing the required value(s).
        { # Row of the fetch response consisting of a set of entries.
          &quot;fieldValues&quot;: [ # Output only. Columns/entries/key-vals in the result.
            { # Column or key value pair from the request as part of key to use in query or a single pair of the fetch response.
              &quot;displayName&quot;: &quot;A String&quot;, # Output only. Name of the field.
              &quot;filterAlias&quot;: &quot;A String&quot;, # Output only. Field name to be used in filter while requesting configured insight filtered on this field.
              &quot;id&quot;: &quot;A String&quot;, # Output only. Field id.
              &quot;value&quot;: &quot;A String&quot;, # Output only. Value of the field in string format. Acceptable values are strings or numbers.
            },
          ],
        },
      ],
    },
  ],
  &quot;nextPageToken&quot;: &quot;A String&quot;, # Output only. Next page token to be fetched. Set to empty or NULL if there are no more pages available.
}</pre>
</div>

<div class="method">
    <code class="details" id="list_next">list_next()</code>
  <pre>Retrieves the next page of results.

        Args:
          previous_request: The request for the previous page. (required)
          previous_response: The response from the request for the previous page. (required)

        Returns:
          A request object that you can call &#x27;execute()&#x27; on to request the next
          page. Returns None if there are no more items in the collection.
        </pre>
</div>

</body></html>